package testcase;

import junit.framework.TestCase;
import card.*;

public class DeckTest extends TestCase {
	// initialization
	private Deck d;
	@Override
	public void setUp(){
		d = new Deck();
	}
	@Override
	public void tearDown(){
		
	}
	// test case
	public void testCorrectness(){
		assertEquals(d.getCard(0).compare(new Card('s','A')), true);
		assertEquals(d.getCard(14).compare(new Card('h','2')), true);
		assertEquals(d.getCard(28).compare(new Card('c','3')), true);
		assertEquals(d.getCard(49).compare(new Card('d','J')), true);
		assertEquals(d.getCard(52).compare(new Card('g','B')), true);
		assertEquals(d.getCard(53).compare(new Card('g','R')), true);
	}
}
